<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: QcnSim/ProtocolDataUnit.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d21be12960473ba5c51e5f9beea3525e.html">QcnSim</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ProtocolDataUnit.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_protocol_data_unit_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_token_8h.html">Token.h</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">   24</a></span>&#160;<span class="preprocessor">#define DEFAULT_TTL 128 // Default, hard-coded TTL.</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_protocol_data_unit.html">   33</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>: <span class="keyword">public</span> <a class="code" href="class_token.html">Token</a> {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">   35</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">   36</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>,</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>);</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>,</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, <span class="keywordtype">int</span> <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>,</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, <span class="keywordtype">int</span> <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>,</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, <span class="keywordtype">int</span> <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>,</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, <span class="keywordtype">int</span> <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>,</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt;Entity&gt; <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a>(std::shared_ptr&lt;Token&gt; token, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a>(std::shared_ptr&lt;Token&gt; token, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#aff0a0c4b5851115f75ddee903bef0419">getTtl</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#abdaa8ab1e636b146205e4cd2aecd81f5">getPduSize</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_protocol_data_unit.html#a42a8e571a64f65379e3dfc719960ce53">setTtl</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_protocol_data_unit.html#acef2f04f3183ecfe20126c6faed978ff">setPduSize</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_protocol_data_unit.html#a01adc1a7830a1a40af4daff835226ef3">decrementTtl</a>();</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="comment">//friend bool ProtocolDataUnit::operator==(const ProtocolDataUnit &amp;left, const ProtocolDataUnit &amp;right);</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;};                  </div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html"><div class="ttname"><a href="class_protocol_data_unit.html">ProtocolDataUnit</a></div><div class="ttdoc">Protocol Data Unit class. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00033">ProtocolDataUnit.h:33</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a01adc1a7830a1a40af4daff835226ef3"><div class="ttname"><a href="class_protocol_data_unit.html#a01adc1a7830a1a40af4daff835226ef3">ProtocolDataUnit::decrementTtl</a></div><div class="ttdeci">void decrementTtl()</div><div class="ttdoc">Decrement TTL value. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8cpp_source.html#l00185">ProtocolDataUnit.cpp:185</a></div></div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_aff0a0c4b5851115f75ddee903bef0419"><div class="ttname"><a href="class_protocol_data_unit.html#aff0a0c4b5851115f75ddee903bef0419">ProtocolDataUnit::getTtl</a></div><div class="ttdeci">unsigned short int getTtl() const </div><div class="ttdoc">Gets current TTL value. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8cpp_source.html#l00195">ProtocolDataUnit.cpp:195</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html"><div class="ttname"><a href="class_token.html">Token</a></div><div class="ttdoc">Token class. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00044">Token.h:44</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a2103a889317ce5ea0fdce010c1c3bddd"><div class="ttname"><a href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit::ProtocolDataUnit</a></div><div class="ttdeci">ProtocolDataUnit(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination, unsigned int pduSize)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8cpp_source.html#l00035">ProtocolDataUnit.cpp:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_abdaa8ab1e636b146205e4cd2aecd81f5"><div class="ttname"><a href="class_protocol_data_unit.html#abdaa8ab1e636b146205e4cd2aecd81f5">ProtocolDataUnit::getPduSize</a></div><div class="ttdeci">unsigned int getPduSize() const </div><div class="ttdoc">Gets PDU size or length in bytes. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8cpp_source.html#l00227">ProtocolDataUnit.cpp:227</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_simulator_globals_html"><div class="ttname"><a href="class_simulator_globals.html">SimulatorGlobals</a></div><div class="ttdoc">Simulator-scope variables and parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8h_source.html#l00044">SimulatorGlobals.h:44</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a42a8e571a64f65379e3dfc719960ce53"><div class="ttname"><a href="class_protocol_data_unit.html#a42a8e571a64f65379e3dfc719960ce53">ProtocolDataUnit::setTtl</a></div><div class="ttdeci">void setTtl(unsigned short int ttl)</div><div class="ttdoc">Sets TTL (Time To Live) parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8cpp_source.html#l00209">ProtocolDataUnit.cpp:209</a></div></div>
<div class="ttc" id="_token_8h_html"><div class="ttname"><a href="_token_8h.html">Token.h</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_acef2f04f3183ecfe20126c6faed978ff"><div class="ttname"><a href="class_protocol_data_unit.html#acef2f04f3183ecfe20126c6faed978ff">ProtocolDataUnit::setPduSize</a></div><div class="ttdeci">void setPduSize(unsigned int pduSize)</div><div class="ttdoc">Sets PDU size in bytes. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8cpp_source.html#l00218">ProtocolDataUnit.cpp:218</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 14 2013 11:18:20 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
